package com.drp.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ren
 * @since 2022-03-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_goods")
public class Goods extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "g_id", type = IdType.AUTO)
    private Integer gId;

    private String gName;

    private String gFactory;

    private Double gPrice;

    private Double gSole;

    private Integer gNumber;

    @TableField("fk_kindId")
    private Integer fkKindid;
    @TableField(exist = false)
    private Kind kind;

    @TableField("fk_supplierId")
    private Integer fkSupplierid;
    @TableField(exist = false)
    private Supplier supplier;

    @TableField("fk_userId")
    private Integer fkUserid;
    @TableField(exist = false)
    private User user;


}
